package com.lagou.niancheng.lagouservicecode.ext;

import com.lagou.niancheng.lagou.service.common.EmailDTO;
import com.lagou.niancheng.lagou.service.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * com.lagou.niancheng.lagouservicecode.ext.ExtMailService
 *
 * @author 大犬
 * @date 2020/6/29
 */
@FeignClient(value = "email-server", fallback = ExtMailServiceImpl.class)
public interface ExtMailService {
    /**
     * 发送有邮件
     *
     * @return 返回结果
     */
    @PostMapping("/mail/send")
    Result sendMail(@RequestBody EmailDTO emailDTO);
}
